|
|
|
|
|
- Special cases
- Handling records during a transaction
- Transactions and independent HFSQL context
<Source>.TransactionFree (Function) In french: <Source>.TransactionLibère
Available only with these kinds of connection
Transforms all the records "in transaction" into "normal" records if these records do not belong to a transaction currently in progress. If a record found in the specified data file is considered as being in transaction but does not belong to a transaction in progress, it is automatically freed. Caution: this function is an advanced function. This feature must be used when it is not possible to cancel the transactions that have failed (deleted transaction files for example). // Frees all the records in transaction that may be used Customer.TransactionFree() Syntax <Result>: Boolean - True if the operation is performed,
- False if a problem occurs. HErrorInfo returns more details about the error.
<Source>: Type corresponding to the specified source Name of the HFSQL Classic or Client/Server data file for which the records in transaction must be freed.
Freeing a record found in a data file Hide the details
<Result> = <Source>.TransactionFree(<Record number>)
<Result>: Boolean - True if the operation is performed,
- False if a problem occurs. HErrorInfo returns more details about the error.
<Source>: Type corresponding to the specified source Name of the HFSQL Classic or HFSQL Client/Server data file for which the record in transaction must be freed.
<Record number>: Integer Number of the record to be removed. If this parameter set to 0 or to the hCurrentRecNum constant, <Source>.TransactionFree will read the current record. Remarks Special cases - This function can only be used for the data files in HFSQL format. For all the other types of data files, this function has no effect and it returns True.
- The records that cannot be read (locked records for example) are ignored.
- This function can be used to free the transactions performed on data files in an HFSQL cluster.
Handling records during a transaction Transactions and independent HFSQL context
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|